package com.baosu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baosu.domain.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baosu.domain.ArticleDto;
import com.baosu.domain.Result;

import java.util.List;

public interface ArticleService extends IService<Article> {

    Result add(ArticleDto articleDto);

    Result deleteArticleAndTag(List<Long> ids);

    Result updateArticle(ArticleDto articleDto);

    Result selectById(Long id);

    Result pageTagList(String query, int pagenum, int size);

    Result updateCount(Long id);

    Result hotArticleList();
}
